package com.org.csu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.org.csu.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface accountMapper extends BaseMapper<User> {
    @Select("SELECT * FROM user WHERE username = #{username}") // 将 'users' 替换成你的实际表名
    User selectByUsername(String username);
}